Part Number Hot Search : 
2D00K LNBP21D2 KBPC3501 MEGA64 05K175 LP2980 25C64 1N6268A
Product Description
Full Text Search
 

To Download AN842 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  AN842/1195 1/6 application note 7 segment display drive using the st6-realizer introduction seven segment devices are often preferred in display applications where high luminescence is required, both for indoor and outdoor applications. controlling the display is normally but one of many tasks handled by a typical application. the techniques described in this note are of a general nature and may be applied to a variety of applications. hardware considerations are reviewed and generation of control software using the st6-realizer is described. by olivier rouy
2/6 7 segment display drive using the st6-realizer 1 principle of operation a 7-segment display consists of 7 led's arranged in a figure-eight pattern, such that by selectively pow- ering various combinations of segments alphanumeric characters may be displayed; a further led is present which, when powered, causes a dot or decimal point to be displayed (figure 1). each led is turned on by forward biasing its respective anode, all segment cathodes being commoned (common an- ode devices also exist). the digital point led is generally used to display numbers containing a non-integer part. table 1 illus- trates the required segment patterns for numeric representation, including the optional decimal point character. figure 1. structure of a 7 segment display table 1. led's turned on for a given digit x = don't care biasing can be either continuous or multiplexed as long as the refresh frequency is high enough to ensure image persistence for the human eye (at least 20 cycles per second to avoid flicker) . abcde f gdp 0 1111110 x 1 0110000 x 2 1101101 x 3 1111001 x 4 0110011 x 5 1011011 x 6 1011111 x 7 1100000 x 8 1111111 x 9 1111011 x dpxxxxxxx 1 a b f c e d g dp
3/6 7 segment display drive using the st6-realizer 2 practical implementation 2.1 hardware layout biasing is achieved using the st62 mcu's i/o lines. one line is used to bias the common cathode, while 7 lines are assigned to led segments a - g and a further line, if required, to the dp. each segment of the display can thus be turned on or off, depending on the value written to the corresponding i/o l ine. 2.2 software generation control software is automatically generated by the st6-realizer, on the basis of a functional descrip- tion. the digit to be displayed is available as a variable, "digit value". the display control software must then write the relevant value to the i/o lines in accordance with table 1. the st6-realizer library provides a component, the lookuptable, for this kind of application . this table assigns to each variable input value a constant output value defined in the rom memory of the st62 mcu. if a lookup table is defined for each led or segment, the output data is of bit type as shown in the figure 2 for segment g. figure 2. lookup table for segment g finally, the resultant bits are transferred to the i/o port via the digout components (figure 3).
4/6 7 segment display drive using the st6-realizer figure 3. 7-segment drive with bitwise lookup table however this approach implies the use of 7 lookup tables (1 for each segment). this means the mcu has to scan a table 7 times, with consequent impact on execution time. a better alternative is to concatenate the 7 segments into a bytewise variable, and therefore use only one lookup table with output data of ubyte type. in this case, the content of the lookup table is a byte defined as described in table 2: table 2. 7-segment coding in one byte the resulting byte is then transferred to 7 digout components by using an unpacker component, bunpack , and gives the complete description as per figure 4. d7 d6 d5 d4 d3 d2 d1 d0 don't care g f e d c b a
5/6 7 segment display drive using the st6-realizer figure 4. 7-segment drive with bytewise lookup table by using the simulation features of the st6-realizer, the reduction in execution time has been quanti- fied as follows: 7 bitwise lookup tables: 5170s 1 bytewise lookup table: 1125s 2.3 multiple digit display these concepts can be extended to multiple-digit display systems. the simplest approach is to drive each digit separately, which requires at least 7 i/o lines per d igit (excluding dp and assuming the common cathodes are tied to an external supply). it is possible to greatly reduce the number of i/o lines by adopting a multiplexing technique. in this scheme, each of the segments are common for all display digits, while the cathodes are driven sequentially to select the active digit. the 7 i/o lines which drive the segments are then driven in accordance with the currently driven cathode. the lookup table is common to all digits but its input will vary depending on the digit to be displayed. the input thus depends on the cathode selection signal, which must switch with a period shorter than the persistence time of the human eye in order to avoid flicker. in the present case, 20ms has been chosen. figure 5 illustrates such an application, where two digits are used to display values ranging from 0 to 99.
6/6 7 segment display drive using the st6-realizer figure 5. multiple digit display application information furnished is believed to be accurate and reliable. however, sgs-thomson microelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of sgs-thomson microelectronics. specifications mentioned in this publication are subject to change without notice. this publication supersedes and replaces all information previously supplied. sgs-thomson microelectronics products are not authorized for use as critical components in life support devices or systems without the express written approval of sgs-thomson microelectronics. ?the realizer is a registered trademark of actum solutions ?19 95 sgs-thomson microelectronics - all rights reserved. purchase of i 2 c components by sgs-thomson microe lectronics conveys a license under the philips i 2 c patent. rights to use these components in an i 2 c system is gra nted provided that the system conforms to the i 2 c standard specification as d efined by philips. sgs-thomson microelectronics group of companies australia - brazil - china - france - germany - hong kong - italy - japan - korea - malaysia - malta - morocco - the nether lands - singapore - spain - sweden - switzerland - taiwan - thailand - united kingdom - u.s.a.


▲Up To Search▲   

 
Price & Availability of AN842

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X